import Vue from 'vue'
import Router from 'vue-router'
import ShowNews from '@/components/ShowNews'
import InsertNews from '@/components/InsertNews'
import UpdateNews from '@/components/UpdateNews'
import Check from '@/components/Check'
import Upload from '@/components/Upload'
import  ShowExam from '@/components/ShowExam'
import InsertExam from '@/components/InsertExam'
import UpdateExam from '@/components/UpdateExam'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path:"/showNews",
      name:'ShowNews',
      component:ShowNews
    },
    {
      path:"/insertNews",
      name:'InsertNews',
      component:InsertNews
    },
    {
      path:"/updateNews",
      name:'UpdateNews',
      component:UpdateNews
    },
    {
      path:"/check",
      name:'Check',
      component:Check
    },
    {
      path:"/upload",
      name:'Upload',
      component:Upload
    },
    {
      path:"/showExam",
      name:'ShowExam',
      component:ShowExam
    },
    {
      path:"/insertExam",
      name:'InsertExam',
      component:InsertExam
    },
    {
      path:"/updateExam",
      name:'UpdateExam',
      component:UpdateExam
    },
  ]
})
